Giter Site home page Giter Site logo

Comments (2)

mcoles avatar mcoles commented on August 11, 2024

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.

dwalker3rd avatar dwalker3rd commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.