Comments (2)
Weird...is it a multi-sheet dashboard, or a single-sheet standalone view? Sounds like it is either a Tableau Server bug, or (if a multi-sheet), possibly a behavior change?
from vizalerts.
this is happening in the sms_number_to_e164 function in smsaction.py. when an invalid smsnumber is detected, a UserWarning is raised which is caught by the except at line 312. in the except, the logger tries to log "e.message". however, there's no message attribute for the UserWarning class. as a result, another exception is thrown: error: 'AttributeError' object has no attribute 'message'
. i believe changing line 313 to log.logger.error(e)
would fix the issue.
270 def smsnumber_to_e164(smsnumber, iso2countrycode):
271 """Tries to convert a string into an E.164 formatted phone number
272 Raises exception if it can't, returns the E.164 number as a string, if it can """
273
274 try:
275 log.logger.debug('Converting {} to E.164 format, country code {}'.format(smsnumber, iso2countrycode))
...
298 if not phonenumbers.is_valid_number(smsnumber_obj):
299 errormessage = 'SMS Number is not valid: {}.'.format(smsnumber)
300 log.logger.error(errormessage)
301 raise UserWarning(errormessage)
...
310 # all good, return it!
311 return e164_number
312 except Exception as e:
313 log.logger.error(e.message)
314 return None
from vizalerts.
Related Issues (20)
- Review code for platform-specific file paths
- yaml.load has been deprecated and is unsafe HOT 2
- Allow empty Email To HOT 1
- problem upgrading to 2.2.0 from 2.1.1 HOT 2
- Mixed action flag values used with consolidate lines can cause no emails to send
- Add check to ensure that cert file is not a directory
- Setting a customized mail header and body HOT 1
- Update config workbook to use new projects_contents mapping table HOT 7
- Viz Alert s are not sending out as getting an error like CSV and Sort Oder. We are using 2.1.1 version. HOT 3
- merge_pdf_attachments incompatible with MyPDF2 3.0.0 and other packages. HOT 1
- VizConfigSQL HOT 1
- Upgrading Tableau to 2023.1.2 (Invalid regular expression "allowed_from_address" HOT 2
- Detect invalid CSV export data and improve user messaging
- Add requirements.txt
- Issue #203 is not fixed in vizalerts.zip file in release 2.2.1 HOT 3
- [ERROR] - export_view - Request Exception getting vizdata from url
- Vizalert not working on Tableau 2023.3
- Tableau server 2023 can't export as CSV HOT 2
- ѴizAlerts – On Refresh Success with live data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vizalerts.